import { getSecklist } from '../../../require/api'

const state = {
    seckList: []
}
const getters = {
    getSecklist(state) {
        return state.seckList
    }
}
const mutations = {
    GETSECKLIST(state, payload) {
        state.seckList = payload
    }
}
const actions = {
    seckillAction({ commit }) {
        getSecklist().then(res => {
            console.log(res);
            if (res.code == 200) {
                commit('GETSECKLIST', res.list)
            }

        })
    }
}

export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true

}